// ====== 游戏启动器 ====== || ====== Game Launcher ======
// 包含游戏主控文件（类似游戏总电路图）|| Include game controller file (like main circuit diagram)
#include "Game.hh"        

// 根据操作系统进行特殊设置 || Special settings based on operating system
#ifdef _WIN32             // 如果是Windows系统 || If Windows system
#include <windows.h>      // 包含Windows系统控制工具 || Include Windows system control tools
#endif

// ====== 程序起点 ====== || ====== Program Starting Point ======
// 主发动机（整个程序的启动入口）|| Main engine (launch entry for the whole program)
int main() {
    // ====== 跨平台特殊设置 ====== || ====== Cross-platform Settings ======
    #ifdef _WIN32  // 仅限Windows系统执行 || Windows-only operation
    // 设置控制台支持国际字符显示（让中文/表情符号正确显示）|| Enable console for international characters (display Chinese/emojis correctly)
    SetConsoleOutputCP(CP_UTF8);  // 相当于调整显示屏的语言解码器 || Like adjusting language decoder for display
    #endif

    // ====== 游戏主流程 ====== || ====== Game Main Flow ======
    Game game;      // 创建游戏世界（根据蓝图建造游戏）|| Create game world (build game according to blueprint)
    game.run();     // 启动游戏引擎（开始主循环）|| Start game engine (begin main loop)

    // 程序圆满结束的仪式性返回（类似闭幕式）|| Ceremonial return for successful completion (like closing ceremony)
    return 0;       // 0 表示"一切正常"的暗号 || 0 is the code for "all is well"
}